<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- 引入ElementUI样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <script src="https://unpkg.com/vue/dist/vue.js"></script>
    <!-- 引入ElementUI组件库 -->
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>

</head>
<body>


<div id="app">

    <el-menu>
        <el-submenu index="1">
            <template slot="title">
                <i class="el-icon-location"></i>  <!--一级菜单图标-->
                <span>导航一</span>  <!--一级菜单名导航名-->
            </template>
            <el-menu-item index="1-1">猪儿虫</el-menu-item>  <!--二级菜单  通过index数字控制-->
            <el-menu-item index="1-2">毛毛虫</el-menu-item>
            <el-menu-item index="1-3">屎壳郎</el-menu-item>
            <el-menu-item index="1-4">赫拉子</el-menu-item>
        </el-submenu>
        <el-submenu index="2">
            <template slot="title">
                <i class="el-icon-menu"></i>
                <span slot="title">导航二</span>
            </template>
            <el-menu-item index="2-1">选项1</el-menu-item>
            <el-menu-item index="2-2">选项1</el-menu-item>
            <el-menu-item index="2-3">选项1</el-menu-item>
            <el-menu-item index="2-4">选项1</el-menu-item>
        </el-submenu>
    </el-menu>

</div>


<script>
    new Vue({
        el: '#app'
    });
</script>


</body>
</html>